<?php
use_helper('I18N');
?>
<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch(e) {
        }

        $(function($) {

        });
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="/member/memberRegistration">Home</a>
        </li>
        <li class="active">Summary</li>
    </ul>
    <!-- .breadcrumb -->

    <div class="nav-search" id="nav-search">
        <form class="form-search">
            <span class="input-icon">
                <input type="text" placeholder="Search ..." class="nav-search-input"
                       id="nav-search-input" autocomplete="off"/>
                <i class="icon-search nav-search-icon"></i>
            </span>
        </form>
    </div>
    <!-- #nav-search -->
</div>

<div class="page-content">
<!--<div class="page-header">
    <h1>
        Registration
        <small>
            <i class="icon-double-angle-right"></i>
            Active Member List
        </small>
    </h1>
</div>-->
<!-- /.page-header -->

<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->

<?php include_component('component', 'alert', array('param' => $sf_user->getAttribute(Globals::SESSION_DISTID, 0))) ?>

<div class="row">
    <div class="space-6"></div>

    <div class="col-xs-12">
        <h3 class="header smaller lighter green"><?php echo __('Last 5 records of Deposit Request') ?></h3>

        <div class="table-responsive">
            <table id="sample-table" class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th><?php echo __('Reference No.') ?></th>
                    <th><?php echo __('Requested On') ?></th>
                    <th><?php echo __('Game') ?></th>
                    <th class="hidden-480"><?php echo __('Status') ?></th>
                    <th><?php echo __('Deposit Amount') ?></th>
                </tr>
                </thead>
                <tbody>
<?php
if (count($distEpointPurchases) <= 0) {
    ?>
<tr>
    <td colspan="8" align="center"><?php echo __("No data available in table") ?></td>
</tr>
    <?php

} else {

    foreach ($distEpointPurchases as $distEpointPurchase) {
        ?>
    <tr>
        <td><?php echo $distEpointPurchase->getPurchaseId(); ?></td>
        <td><?php echo $distEpointPurchase->getCreatedOn(); ?></td>
        <td><?php echo $distEpointPurchase->getGame(); ?></td>
        <td><b class="green"><?php echo $distEpointPurchase->getStatusCode(); ?></b></td>
        <td><b class="green"><?php echo $distEpointPurchase->getAmount(); ?></b></td>
    </tr>
            <?php

    }
}
?>
                </tbody>
            </table>
        </div>
        <div style="float: right;">
            <a href="/member/fundsDepositStatus">View More</a>
        </div>
    </div>

    <div class="vspace-sm"></div>

    <!-- /span -->
</div>
<!-- /row -->

<div class="hr hr32 hr-dotted"></div>

<div class="row">
    <div class="space-6"></div>

    <div class="col-xs-12">
        <h3 class="header smaller lighter green"><?php echo __('Last 5 records of Withdrawal Request') ?></h3>

        <div class="table-responsive">
            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th><?php echo __('Reference No.') ?></th>
                    <th><?php echo __('Requested On') ?></th>
                    <th><?php echo __('Game') ?></th>
                    <th class="hidden-480"><?php echo __('Status') ?></th>
                    <th><?php echo __('Withdraw Amount') ?></th>
                </tr>
                </thead>

                <tbody>
<?php
if (count($ecashWithdraws) <= 0) {
    ?>
<tr>
    <td colspan="8" align="center"><?php echo __("No data available in table") ?></td>
</tr>
    <?php

} else {

    foreach ($ecashWithdraws as $ecashWithdraw) {
        ?>
    <tr>
        <td><?php echo $ecashWithdraw->getWithdrawId(); ?></td>
        <td><?php echo $ecashWithdraw->getCreatedOn(); ?></td>
        <td><?php echo $ecashWithdraw->getGame(); ?></td>
        <td><b class="green"><?php echo $ecashWithdraw->getStatusCode(); ?></b></td>
        <td><b class="green"><?php echo $ecashWithdraw->getDeduct(); ?></b></td>
    </tr>
            <?php
    }
}
?>
                </tbody>
            </table>
        </div>
        <div style="float: right;">
            <a href="/member/withdrawalStatus">View More</a>
        </div>
    </div>

    <div class="vspace-sm"></div>

    <!-- /span -->
</div>
<!-- /row -->

<div class="hr hr32 hr-dotted"></div>

<!-- /row -->

<!-- PAGE CONTENT ENDS -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div><!-- /.page-content -->